package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 工单备件旧件退回表
 * </p>
 *
 * @author WEN
 * @since 2024-01-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjWorkSpareReturn对象", description="工单备件旧件退回表")
public class ZjWorkSpareReturn implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "工单ID")
    private Long workId;

    @ApiModelProperty(value = "工单单号")
    private String workNo;

    @ApiModelProperty(value = "工单备件单号")
    private String workSpareNo;

    @ApiModelProperty(value = "服务商ID")
    private Long networkId;

    @ApiModelProperty(value = "旧件单号")
    private String code;

    @ApiModelProperty(value = "旧件退回状态：1-待退回，2-待确认并填写物流，3-已退回")
    private Integer status;

    @ApiModelProperty(value = "旧件退回时间")
    private Date returnTime;

    @ApiModelProperty(value = "是否外部仓库：0-内部仓库，1-外部仓库")
    @TableField("is_out_store")
    private Boolean outStore;

    @ApiModelProperty(value = "外部仓库类型：1-网点仓库，2-工程师仓库，当is_out_store=1时生效")
    private Integer outStoreType;

    @ApiModelProperty(value = "退回仓库表ID")
    private Long storeId;

    @ApiModelProperty(value = "退回仓库仓位表ID")
    private Long storePositionId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtUpdate;


}
